package com.hyzx.qbasic.generator;

import com.baomidou.mybatisplus.generator.AutoGenerator;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * Created by 黄江华 on 2019/1/30
 * Spring boot主程序入口
 */

@SpringBootApplication
public class Application implements CommandLineRunner {
    @Autowired
    private AutoGenerator autoGenerator;

    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }

    @Override
    public void run(String... args) {
        autoGenerator.execute();
    }
}
